package test_01;

import java.util.Arrays;

public class test03 {
    public static void main(String[] args) {
        int[] arr = new int[10];

        int n = arr.length;

        for (int i = 0; i < n; i++) {
            arr[i] = (int) (Math.random() * 100 + 1);
        }

        for (int i = 0; i < n; i++) {
            for (int j = 1 + i; j < n; j++) {
                if (arr[i] > arr[j]) {
                    int temp = arr[j];
                    arr[j] = arr[i];
                    arr[i] = temp;

                }
            }
        }

        System.out.println(Arrays.toString(arr));

    }
}
